/*-----------------------------------------------------------------------------*/

#ifndef _XBLOB_H_
#define _XBLOB_H_
#include "xtypes.h"
#include "xbuffer.h"


// BLOB = Binary Large Object
class CxBlob : public CxStaticBuffer
{
public:
	void resize(int_t _Size);
	void fill(byte_t _Value=0);
	void fill_with(int_t _Offset, const wildptr_t _MemPtr, int_t _Size);

	void bload(lpcstr_t lpszPathName);
	void bsave(lpcstr_t lpszPathName);

public:
	CxBlob();
	~CxBlob();
	CxBlob(int_t _Size);
	CxBlob(const CxBlob& _Blob);
	CxBlob& operator=(const CxBlob& _Blob);

};
#define blob_t CxBlob



#endif //_XBLOB_H_
